<?php

namespace app\api\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
        "account|登录账号"       => "require",
        "password|登录密码"      => "require",
        "registration_id|设备标识" => "require",
        "mobile|手机号" => "require|mobile",
        "code|验证码" => "require",
    ];

    protected $scene = [
        'account'      => ['account', 'password'],
        'face'         => ['account'],
        'finger'       => ['account'],
        'code'         => ['mobile', 'code'],
    ];

}